<?php
 
namespace models\entities;
use classes; 
/**
 * @Entity(repositoryClass="models\repositories\PerpustakaanRepository")
 * @Table(name="perpustakaan")
 */
class Perpustakaan {
 
/**
 * @Id
 * @Column(name="id", type="string", nullable=false)
 */
	protected $id;

/**
 * @Column(name="nama", type="string", length=45, nullable=false)
 */
	protected $nama;
	
/**
 * @Column(name="jenis", type="string", length=45, nullable=false)
 */
	protected $jenis;
	
/**
 * 
 * @ManyToOne(targetEntity="Desa", fetch="EAGER")
 * @JoinColumn(name="desa_id", referencedColumnName="id")
 */
	protected $desa;	
		
	
	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}


	public function setNama($nama)
	{
	    $this->nama = $nama;
	}
 
	public function getNama()
	{
	    return $this->nama;
	}
	
	public function setJenis($jenis)
	{
	    $this->jenis = $jenis;
	}
 
	public function getJenis()
	{
	    return $this->jenis;
	}
	
	public function setDesa($desa)
	{
	    $this->desa = $desa;
	}
 
	public function getDesa()
	{
	    return $this->desa;
	}
		
}